from rest_framework import serializers
from myapp.models import *

#用户类的序列器
class UserSer(serializers.ModelSerializer):

    class Meta:
        model = User
        fields = "__all__"

#公司类的序列器
class CompaniesSer(serializers.ModelSerializer):

    class Meta:
        model = Companies
        fields = "__all__"

#标签类的序列器
class TagsSer(serializers.ModelSerializer):

    class Meta:
        model = Tags
        fields = "__all__"

#货物类的序列器
class CargoTypeSer(serializers.ModelSerializer):

    class Meta:
        model = CargoType
        fields = "__all__"